import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/set/page',
    method: 'post',
    data
  })
}

export function query(uid) {
  return request({
    url: '/set/query',
    method: 'get',
    params: { uid }
  })
}

export function list_course() {
  return request({
    url: '/set/list_course',
    method: 'get'
  })
}

export function list_classify() {
  return request({
    url: '/set/list_classify',
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/set/update',
    method: 'post',
    data
  })
}

export function save_update(data) {
  return request({
    url: '/set/save_update',
    method: 'post',
    data
  })
}
